package com.bailiny.nio;

/**
 * @author Yang Xu
 * @date 2020/2/25 13:00
 * @description:
 */
public class TimeClient {

    public static void main(String[] args) {
        int port = 8080;
        if (args != null && args.length > 0) {
            try {
                port = Integer.valueOf(args[0]);
            } catch (NumberFormatException e) {
                e.printStackTrace();
            }
        }
        TimeClientHandler timeClient = new TimeClientHandler("127.0.0.1", port);
        new Thread(timeClient, "NIO-TimeClient-001").start();
    }
}
